package com.tedu.springdemo.day01;
import com.tedu.springdemo.day01.NetConnection;

public class NetConnStaticFactory {
    //1.私有化构造器
    private NetConnStaticFactory(){

    }
    //2.静态方法getInstance()，返回值Netconnection对象
    public static NetConnection getInstance(){
        NetConnection nc = new NetConnection();
        nc.load();
        nc.ping();
        nc.conn();
        return nc;
    }
}